﻿using RepositoryEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IRepositoryBll
{
    public interface IConsumableInfoBll
    {
        /// <summary>
        /// 添加耗材信息
        /// </summary>
        /// <param name="consumableInfo"></param>
        /// <returns></returns>
        bool AddConsumableInfo(ConsumableInfo consumableInfo);

        /// <summary>
        /// 获取集合、分页
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <param name="count"></param>
        /// <param name="description"></param>
        /// <returns></returns>
        object GetConsumableInfoListByPage(int page, int limit, out int count, string description);

        /// <summary>
        /// 获取耗材ID
        /// </summary>
        /// <param name="consumableInfoId"></param>
        /// <returns></returns>
        ConsumableInfo GetConsumableInfo(string consumableInfoId);

        /// <summary>
        /// 更新耗材信息
        /// </summary>
        /// <returns></returns>
        bool UpdateConsumableInfo(string ID , string Description, string CategoryId, string Name, string Specification, int Num, string Unit, decimal Money, int WarningNum);

        /// <summary>
        /// 软删除
        /// </summary>
        /// <param name="consumableInfoId"></param>
        /// <returns></returns>
        bool SoftConsumableInfo(string consumableInfoId , out string msg);

        /// <summary>
        /// 获取耗材管理的耗材名字
        /// </summary>
        /// <returns></returns>
        object GetConsumableInfoSelectOption();

        //判断耗材名字是否相同
        bool IsHasConsumbleInfo(string name);
    }
}
